package com.youhome.service.model;

import lombok.Data;
import org.springframework.util.StringUtils;

/**
 * Created by chen365 on 2018/07/17.
 */
@Data
public class ListHubBase {
    private String houseId;

    private String city;

    private Double listPrice;

    private String  listingStatus;

    private Integer bedroomCount;

    private Integer bathroomCount;

    private String propertySubtype;

    private String heroImage;

    private Double livingArea;

    public String getHeroImage() {
        if (!StringUtils.isEmpty(heroImage)) {
            return "http://youhome.oss-cn-zhangjiakou.aliyuncs.com/" + heroImage;
        }
        return heroImage;
    }
}
